import { createApp } from 'vue'
import App from './App.vue'

//导入axios
import axios from 'axios'

//导入Router
import router from '@/router/index'

//导入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'


//创建app对象
const app = createApp(App)

//使用路由
app.use(router)
//使用elementplus
/*app.use(ElementPlus)*/

//适用zhCn
app.use(ElementPlus, {
    locale: zhCn
})

//挂载app
app.mount('#app')

//将axios挂载到全局对象app中
app.config.globalProperties.$axios = axios


